Vue.component('gonggao-details', {
    props: ['addform','link'],
    data: function () {
        return {
            addFormDisabled: true
        }
    },
    template: '<el-row type="flex" justify="center">\n' +
        '        <el-col :span="15">' +
        '           <el-form :model="addform" :rules="rules" ref="addform" label-width="150px">\n' +
        '                <el-row>\n' +
        '                    <el-col :span="4" class="tab-title">\n' +
        '                        公示通报信息\n' +
        '                    </el-col>\n' +
        '                </el-row>\n' +
        '                <el-row>\n' +
        '                    <el-col span="9">\n' +
        '                        <el-form-item label="创建人:" prop="" label-width="130px">\n' +
        '                            <el-input v-model="addform.createUser " placeholder="" :disabled="addFormDisabled"></el-input>\n' +
        '                        </el-form-item>\n' +
        '                    </el-col>\n' +
        '                    <el-col span="9">\n' +
        '                        <el-form-item label="创建人单位:" prop="" label-width="190px">\n' +
        '                            <el-input v-model="addform.createUserUnit" placeholder="" :disabled="addFormDisabled"></el-input>\n' +
        '                        </el-form-item>\n' +
        '                    </el-col>\n' +
        '                </el-row>\n' +
        '                <el-row>\n' +
        '                    <el-col :span="9">\n' +
        '                        <el-form-item label="创建时间:" prop="" label-width="130px">\n' +
        '                            <el-date-picker\n' +
        '                                    v-model="addform.createTime"\n' +
        '                                    type="date"\n' +
        '                                    value-format="yyyy-MM-dd"\n' +
        '                                    placeholder="创建时间"\n' +
        '                                    :disabled="addFormDisabled">\n' +
        '                            </el-date-picker>\n' +
        '                        </el-form-item>\n' +
        '                    </el-col>\n' +
        '                </el-row>\n' +
        '                <el-row>\n' +
        '                    <el-col :span="14">\n' +
        '                        <el-form-item label="公开地址类型:" prop="" label-width="120px">\n' +
        '                            <el-radio-group v-model="addform.publicType" :disabled="addFormDisabled">\n' +
        '                                <el-radio label="0">服务门户</el-radio>\n' +
        '                                <el-radio label="1" >公众门户</el-radio>\n' +
        '                                <el-radio label="2" >服务门户和公众门户</el-radio>\n' +
        '                            </el-radio-group>\n' +
        '                        </el-form-item>\n' +
        '                    </el-col>\n' +
        '                </el-row>\n' +
        '                <el-row>\n' +
        '                    <el-col span="22">\n' +
        '                        <el-form-item label="标题:" prop="" label-width="130px">\n' +
        '                            <el-input v-model="addform.title" placeholder="" :disabled="addFormDisabled"></el-input>\n' +
        '                        </el-form-item>\n' +
        '                    </el-col>\n' +
        '                </el-row>\n' +
        '                <el-row>\n' +
        '                    <el-col :span="22">\n' +
        '                        <el-form-item label="内容:" prop="" label-width="130px">\n' +
        '                            <el-input\n' +
        '                                    type="textarea"\n' +
        '                                    :autosize="{ minRows: 8, maxRows: 8}"\n' +
        '                                    placeholder="请输入内容"\n' +
        '                                    v-model="addform.publicityContent"\n' +
        '                                    :disabled="addFormDisabled">\n' +
        '                            </el-input>\n' +
        '                        </el-form-item>\n' +
        '                    </el-col>\n' +
        '                </el-row>\n' +
        '                <el-row>\n' +
        '                    <el-col :span="22">\n' +
        '                        <el-form-item label="附件:" label-width="130px">\n' +
        '                            <iframe width="100%" scrolling="no" style="height: 200px;border: none;" :src="link"></iframe>\n' +
        '                        </el-form-item>\n' +
        '                    </el-col>\n' +
        '                </el-row>\n' +
        '            </el-form>' +
        '       </el-col>' +
        '</el-row>'
})
